package com.hlc.helloWord.common.result;

/**
 * Created by helinchong on 2017/12/21.
 */
public enum  ResultEnum {
    SUCCESS(100,"success!"),
    ERROR(101,"error!"),
    RELOGIN(102,"需要跳转到登录页面!"),
    UNKNOWN_EXCETION(-1,"需要跳转到登录页面!");

    ResultEnum(Integer code,String value){
        this.code = code;
        this.value = value;
    }

    private Integer code;
    private String value;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
